package com.blacksheep.mtm.service;

import com.blacksheep.mtm.pojo.common.DataTablesResult;
import com.blacksheep.mtm.pojo.manager.TbSupplier;

import java.util.List;

public interface SupplierService {

    DataTablesResult getSupplierList(int draw, int start, int length,int[] state, String search, String minDate, String maxDate, String orderCol, String orderDir);

    /**
     * 新增一条记录
     * @param supplier
     * @return
     */
    TbSupplier insert(TbSupplier supplier);

    /**
     * 删除
     * @param ids
     * @return
     */
    int deletBatch(Integer[] ids);

    TbSupplier updateSupplier(TbSupplier supplier);

    TbSupplier alertState(Integer id,Integer state);

    /**
     * 小程序请求服务接口
     * @return
     */
    List<TbSupplier> selectListFront();
}
